package com.zyy.jomap.bo;

import com.zyy.jomap.annotation.JoMap;
import com.zyy.jomap.annotation.JoSet;
import com.zyy.jomap.annotation.JoTarget;

import java.util.List;

public class Device extends DeviceParent{

    @JoTarget({"DeviceBO.deviceName"})
    private Long id;

    @JoSet({"DeviceBO.deviceName"})
    private String name;

    @JoMap({"DeviceBO.deviceMapName"})
    private String mapName;

    /** 子设备 **/
    @JoMap(value={"DeviceBO.childDeviceBean"})
    private ChildDevice childDevice;

    private List<ChildDevice> childDeviceList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMapName() {
        return mapName;
    }

    public void setMapName(String mapName) {
        this.mapName = mapName;
    }

    public ChildDevice getChildDevice() {
        return childDevice;
    }

    public void setChildDevice(ChildDevice childDevice) {
        this.childDevice = childDevice;
    }

    public List<ChildDevice> getChildDeviceList() {
        return childDeviceList;
    }

    public void setChildDeviceList(List<ChildDevice> childDeviceList) {
        this.childDeviceList = childDeviceList;
    }
}
